<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加内容-网站管理后台</title>
    <link title="Style" href="/content/css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/content/scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="/content/scripts/jquery.validate.min.js"></script>
    <script type="text/javascript" src="/content/scripts/messages_zh.js"></script>
    <script type="text/javascript">
    $(function(){
        $("#ad_edit").validate();
    })
    </script>

    <link rel="stylesheet" href="/content/kindeditor-4.1.7/themes/default/default.css" />
    <script charset="utf-8" src="/content/kindeditor-4.1.7/kindeditor-min.js"></script>
    <script charset="utf-8" src="/content/kindeditor-4.1.7/lang/zh_CN.js"></script>
    <script>
            var editor;
            KindEditor.ready(function(K) {
                editor = K.create('textarea[name="Content"]', {
                    allowFileManager : true
                });
               
               K('#uploadimg').click(function () {
                editor.loadPlugin('image', function () {
                    editor.plugin.imageDialog({
                        imageUrl: K('#Image').val(),
                        clickFn: function (url, title, width, height, border, align) {
                            K('#Image').val(url);
                            editor.hideDialog();
                        }
                    });
                });
            });

            });
        </script>

</head>
<body>
<div class="AsmTopbox">
    <a href="#" class="logo"><img src="/content/images/logo.png" width="185" /></a>
    <div class="AsmNav">
        <div class="Nav_top">
            <strong id="show_MyUserName">easystarxl</strong>，欢迎您登录广告系统，您好！ [<a href="#">修改资料</a>，<a href="#" onclick="return confirm('确定要退出系统吗？');">退出系统</a>]&nbsp;&nbsp;
            <img src="/content/images/icon_Ss.gif" width="20" height="20" /><a href="http://www.0001688.com/" target="_blank">查看华贸城官网</a>&nbsp;&nbsp;
            <img src="/content/images/Notice.gif" align="absmiddle" />
            <a href="#">点击联系客服！</a>
            <div id="FxsGg" style="float:left;"></div>
            <input type="hidden" id="OldMsg">
        </div>
        <div class="Top_Menu">
            <div class="Top_Menu_Off"><a href="/manage">首页</a></div>
            <div class="Top_Menu_On"><a href="/manage/news">内容管理</a></div>
            <div class="Top_Menu_Mid"><img border="0" src="/content/images/Top_Menu_Mid.gif"></div>
            <div class="Top_Menu_Off"><a onclick="return confirm('确定要退出系统吗？');" href="#">退出</a></div>
        </div>
    </div>
</div>
<!--内容 star-->
<div class="AsmW100">
    <div class="Asmleftbox Left_Top_Menu">
        <div class="mt"><s></s><h2>内容管理</h2></div>
        <div class="mc childTable">
            <ul>
                <li class="Left_Menu_Off"><a href="/manage/news">内容管理</a></li>
                <li class="Left_Menu_Off"><a href="/manage/news/category">分类管理</a></li>
                <li class="Left_Menu_On"><a href="/manage/news/newsadd">添加内容</a></li>
                
            </ul>
        </div>
    </div>
    <!-- 左边菜单完 -->   
    <!-- 左边菜单完 -->    
    <div class="Asmrightbox">
    <table width="100%" border="0" cellspacing="0" cellpadding="10">
        <tr>
            <td>
                <div class="Main_Menu" style="display:block;">
                    <div class="Main_Menu_On"><a href="#">添加内容-内容管理</a></div>
                </div>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Main_Table">
                    <tr>
                        <td class="Main_Table_Td">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>&nbsp;
                                        
                                    </td>
                                    <td width="100">
                                        <input type="hidden" onclick="history.go(-1);" class="btn_Back" onfocus="this.blur();"
                                            value="点击返回" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#FFFFFF" style="padding: 20px;" class="Asmfliter">
                            <!-- 内容开始 -->
                            <form name="edit_frm" id="ad_edit" enctype="multipart/form-data" action="/manage/news/newsaddaction" method="post">
                               
                                <table class="dataintable">
                                  <tbody>
                                  <tr>
                                    <th><span class="xing">*</span>标题：</th>
                                    <td><input class="t_ipt w_310" name="Title" maxlength="100"  style="color: rgb(153, 153, 153); width:400px;" required>
                                    <span id="ad_titleTip" style="margin: 0px; padding: 0px; background: none repeat scroll 0% 0% transparent;"  ><span class="onError_top"></span></span></td>
                                  </tr>
                                  <tr>
                                    <th><span class="xing">*</span>SEO标题：</th>
                                    <td><input class="t_ipt w_310" name="MetaTitle" maxlength="100"  style="color: rgb(153, 153, 153);width:400px;" required><span id="ad_titleTip" style="margin: 0px; padding: 0px; background: none repeat scroll 0% 0% transparent;"  ><span class="onError_top"></span></span></td>
                                  </tr>
                                  <tr>
                                    <th><span class="xing"> </span>主图：</th>
                                    <td><input class="t_ipt w_310" name="Image" maxlength="250"  style="color: rgb(153, 153, 153);width:400px;">
                                        <input type="button" value="选择图片" id="uploadimg">
                                    <span id="ad_titleTip" style="margin: 0px; padding: 0px; background: none repeat scroll 0% 0% transparent;"  >
                                    <span class="onError_top"></span></span></td>
                                  </tr>
                                  <tr>
                                    <th> 摘要：</th>
                                    <td><textarea id="dataTradeContent" name="Summary" style="width:400px;height:50px;" required></textarea></td>
                                  </tr>
                                  <tr>
                                    <th> 所属分类：</th>
                                    <td>
                                        <select name="CategoryId" required>
                                        <option value="">--请选择分类--</option>
                                        <?php foreach ($category_list as $item): ?>
                                        <option value="<?php echo $item['CategoryId'];?>"><?php echo $item['CategoryName'];?></option>
                                        <?php endforeach;?>
                                       
                                        </select>
                                        
                                     </td>
                                  </tr>
                                 <tr>
                                    <th><span class="xing"> </span>链接URL：</th>
                                    <td><input class="t_ipt w_310" name="Url" maxlength="250"  style="color: rgb(153, 153, 153);width:400px;"><span id="ad_titleTip" style="margin: 0px; padding: 0px; background: none repeat scroll 0% 0% transparent;"  ><span class="onError_top">当该链接不为空时，前台将直接链接到该URL</span></span></td>
                                  </tr>
                                  <tr>
                                    <th> 内容：</th>
                                    <td><textarea id="Content" name="Content" style="width:950px;height:380px;" required></textarea></td>
                                  </tr>
                                  <tr>
                                    <th> 推荐：</th>
                                    <td>
                                        <input type="checkbox" name="IsRecommend" value="1">是否推荐
                                    </td>
                                  </tr>
                                  <tr>
                                    <th></th>
                                    <td>
                                    <input type="submit" value=" 添 加 内 容 " class="btn fore" />
                                    </td>
                                  </tr>
                                </tbody>
                                </table>
                              </form>
                            <!-- 内容结束 -->
                        </td>
                    </tr>
    
                </table>
            </td>
        </tr>
    </table>
	</div>
</div>
<!--内容 end-->
</body>
</html>
